<template>
  <div class="jianye-login_and_regist">
    <el-button size="medium" @click.stop="click2Login">登录</el-button>
    <el-button size="medium" @click.stop="click2Regist">注册</el-button>
  </div>
</template>

<script>
  import { EventBus } from '@/store/index';
  export default {
    name: 'JianyeLoginAndRegist',
    methods: {
      /* 登录/退出 */
      click2Login() {
        EventBus.$emit("login");
      },
      click2Regist() {
        EventBus.$emit("register");
      },
    },
  }
</script>

<style lang="scss"></style>
